import request from '@/utils/request'

// 查询园区设备列表
export function listOpmEnvEquipment(query) {
  return request({
    url: '/environment/opmEnvEquipment/list',
    method: 'get',
    params: query
  })
}

// 查询园区设施列表
export function listOpmEnvFacility(query){
  return request({
    url: '/environment/opmEnvFacility/listVO',
    method: 'get',
    params: query
  })
}

// 查询园区设备详细
export function getOpmEnvEquipment(id) {
  return request({
    url: '/environment/opmEnvEquipment/' + id,
    method: 'get'
  })
}

// 新增园区设备
export function addOpmEnvEquipment(data) {
  return request({
    url: '/environment/opmEnvEquipment',
    method: 'post',
    data: data
  })
}

// 修改园区设备
export function updateOpmEnvEquipment(data) {
  return request({
    url: '/environment/opmEnvEquipment',
    method: 'put',
    data: data
  })
}

// 删除园区设备
export function delOpmEnvEquipment(id) {
  return request({
    url: '/environment/opmEnvEquipment/' + id,
    method: 'delete'
  })
}
